﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SiteLayout.Master" AutoEventWireup="true" CodeBehind="Browse.aspx.cs" Inherits="ForestryEnterprise.Browse" %>
<asp:Content ID="Content2" ContentPlaceHolderID="context" runat="server">
    <div style="background-color:#DDD; padding:10px;">
    <label>Country:</label>
    <asp:DropDownList ID="locCountry" runat="server" 
            onselectedindexchanged="locCountry_SelectedIndexChanged" AutoPostBack="true"/>
    <label>Area:</label>
    <asp:DropDownList ID="locArea" runat="server" 
            onselectedindexchanged="locArea_SelectedIndexChanged" AutoPostBack="true"/>
    <label>Location:</label>
    <asp:DropDownList ID="locName" runat="server" 
            onselectedindexchanged="locName_SelectedIndexChanged" AutoPostBack="true"/>
</div>

<asp:GridView ID="treeDataView" DataKeyNames="tree_name" AutoGenerateColumns="false" 
    EnableModelValidation="true" DataSourceID="treeData" Width="100%" runat="server">
    <AlternatingRowStyle BackColor="#F0F0F0"/>

    <Columns>
        <asp:BoundField DataField="tree_name" ReadOnly="true" InsertVisible="false" HeaderText="Tree name" HeaderStyle-ForeColor="White" HeaderStyle-BackColor="#A3A3A3"/>
        <asp:BoundField DataField="tree_age" ReadOnly="true" InsertVisible="false" HeaderText="Tree age" HeaderStyle-ForeColor="White" HeaderStyle-BackColor="#A3A3A3"/>
        <asp:BoundField DataField="tree_height" ReadOnly="true" InsertVisible="false" HeaderText="Tree height" HeaderStyle-ForeColor="White" HeaderStyle-BackColor="#A3A3A3"/>
        <asp:BoundField DataField="tree_width" ReadOnly="true" InsertVisible="false" HeaderText="Tree width" HeaderStyle-ForeColor="White" HeaderStyle-BackColor="#A3A3A3"/>
    </Columns>
</asp:GridView>
<asp:AccessDataSource ID="treeData" DataFile="~/App_Data/ForestryEnterprise.mdb" runat="server" />
<asp:Label ID="err" runat="server" />
</asp:Content>
